home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 2_5.lha / 2_5 / 2_5b.c < prev    next >
Text File  |  1993-08-08  |  421b  |  25 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. include <stream.h>
  6. include <ctype.h>
  7. include <limits.h>
  8.  
  9. ifdef TESTC
  10. include "2_5c.c"
  11. else
  12. oid pr(int i)
  13.  
  14.    cout << chr(i) << " " << i << "\n";
  15.  
  16. endif
  17.  
  18. nt main(int, char**)
  19.  
  20.    for (unsigned char i = 0; i < CHAR_MAX; i++)
  21. if (isascii(i) && isprint(i))
  22.     pr(i);
  23.    return 0;
  24.  
  25.